package org.fas.number
{
	public class NumberSeg
	{
		private var min_r:Number;
		private var max_r:Number
		public function NumberSeg(_numMin:Number,_numMax:Number)
		{
			this.max_r = Math.max(_numMin,_numMax);
			this.min_r = Math.min(_numMin,_numMax);
		}
		public function has(_num:Number,_canEqualMin:Boolean=true,_canEqualMax:Boolean=true):Boolean{
			if(_num>min_r && _num<max_r){
				return true;
			}
			if(_num==min_r && _canEqualMin){
				return true;
			}
			if(_num==max_r && _canEqualMax){
				return true;
			}
			return false;
		}
	}
}